package com.esyoga.yoyoga.pojo.DTO;

import com.esyoga.yoyoga.pojo.TTrainer;

import java.math.BigDecimal;

public class TrainerWithStarDTO {
    private Integer tId;

    private String tAccount;

    private String tPassword;

    private String tImage;

    private String tName;

    private String tIntroduction;

    private BigDecimal tValue;

    private BigDecimal tBanlance;

    private String tLatlng;

    private String tAddress;

    private String tFreetime;

    private Integer tState;

    private Integer tRole;

    private Integer tPermission;

    private BigDecimal star;

    public TrainerWithStarDTO(BigDecimal star, TTrainer tTrainer) {
        this.tId = tTrainer.gettId();
        this.tAccount = tTrainer.gettAccount();
        this.tPassword = tTrainer.gettPassword();
        this.tImage = tTrainer.gettImage();
        this.tName = tTrainer.gettName();
        this.tIntroduction = tTrainer.gettIntroduction();
        this.tValue = tTrainer.gettValue();
        this.tBanlance = tTrainer.gettBanlance();
        this.tLatlng = tTrainer.gettLatlng();
        this.tAddress = tTrainer.gettAddress();
        this.tFreetime = tTrainer.gettFreetime();
        this.tState = tTrainer.gettState();
        this.tRole = tTrainer.gettRole();
        this.tPermission = tTrainer.gettPermission();
        this.star = star;
    }

    public TrainerWithStarDTO() {
    }

    public Integer gettId() {
        return tId;
    }

    public void settId(Integer tId) {
        this.tId = tId;
    }

    public String gettAccount() {
        return tAccount;
    }

    public void settAccount(String tAccount) {
        this.tAccount = tAccount;
    }

    public String gettPassword() {
        return tPassword;
    }

    public void settPassword(String tPassword) {
        this.tPassword = tPassword;
    }

    public String gettImage() {
        return tImage;
    }

    public void settImage(String tImage) {
        this.tImage = tImage;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public String gettIntroduction() {
        return tIntroduction;
    }

    public void settIntroduction(String tIntroduction) {
        this.tIntroduction = tIntroduction;
    }

    public BigDecimal gettValue() {
        return tValue;
    }

    public void settValue(BigDecimal tValue) {
        this.tValue = tValue;
    }

    public BigDecimal gettBanlance() {
        return tBanlance;
    }

    public void settBanlance(BigDecimal tBanlance) {
        this.tBanlance = tBanlance;
    }

    public String gettLatlng() {
        return tLatlng;
    }

    public void settLatlng(String tLatlng) {
        this.tLatlng = tLatlng;
    }

    public String gettAddress() {
        return tAddress;
    }

    public void settAddress(String tAddress) {
        this.tAddress = tAddress;
    }

    public String gettFreetime() {
        return tFreetime;
    }

    public void settFreetime(String tFreetime) {
        this.tFreetime = tFreetime;
    }

    public Integer gettState() {
        return tState;
    }

    public void settState(Integer tState) {
        this.tState = tState;
    }

    public Integer gettRole() {
        return tRole;
    }

    public void settRole(Integer tRole) {
        this.tRole = tRole;
    }

    public Integer gettPermission() {
        return tPermission;
    }

    public void settPermission(Integer tPermission) {
        this.tPermission = tPermission;
    }

    public BigDecimal getStar() {
        return star;
    }

    public void setStar(BigDecimal star) {
        this.star = star;
    }
}
